package org.apache.shardingsphere.elasticjob.lite.ui.service;

import org.apache.shardingsphere.elasticjob.lite.ui.domain.UserManage;
import org.apache.shardingsphere.elasticjob.lite.ui.domain.UserManages;

/**
 * @Description user manage service interface
 * @Author JL
 */
public interface UserManageService {

    boolean loginValidate(final String account, final String password);

    UserManages loadAll() ;

    UserManages search(final String account);

    UserManage load(final String account) ;

    boolean enable(final String account);

    boolean disable(final String account);

    boolean devolve(final String fromAccount, final String toAccount);

    UserManage find(final String account, final UserManages configs) ;

    boolean save(final UserManage userManage) ;

    void delete(final String account) ;

}
